package edu.hainnu.niit.dao;

import edu.hainnu.niit.model.News;
import edu.hainnu.niit.model.auction;

import java.util.List;

/**
 * TODO
 *
 * @package_name edu.hainnu.niit.dao
 * @auther GGB
 * @date 2021/12/12
 * @time 14:08
 */
public interface NewsDao {
    //查询最新资讯和行业动态
    List<News> LatestConsultation(Integer pageSize);
    List<News> IndustryDynamics(Integer pageSize);
    //查询热门资讯
    List<News> PopularConsultation(Integer pageSize);
    //查询新闻的总数
    int queryNewsTotal(String title);
    //分页查询
    List<News> queryAllNews(Integer currentPage, Integer pageSize,String title);

    News queryNewsByID(Integer id);

    int NewsCountadd(Integer id);

    List<News> queryTypeNews(Integer currentPage, Integer pageSize, Integer type, String title);
    int queryTypeNewsTotal(Integer type,String title);
}
